<?php

class m130703_132227_add_field_for_login_network extends CDbMigration
{
	public function up(){
		// id auth of google, facebook...
		$this->addColumn("users", "open_id", "TEXT");
		$this->addColumn("users", "open_service","VARCHAR(50)");
		return true;
	}

	public function down()
	{
		$this->dropColumn("users","open_id");
		$this->dropColumn("users","open_service");
	}

	/*
	// Use safeUp/safeDown to do migration with transaction
	public function safeUp()
	{
	}

	public function safeDown()
	{
	}
	*/
}